#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QToolButton>
#include <QLabel>
#include <QSpacerItem>
#include <QAction>
#include <QDebug>
#include <QIODevice>
#include <QDir>
#include <QMessageBox>
#include <QImage>
#include <QFileDialog>
#include <QMediaPlayer>
#include <QGraphicsPixmapItem>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QToolButton>
#include <QSize>
#include <QMenu>
#include <QDockWidget>
#include <QComboBox>
#include <QListWidget>
#include <QListWidgetItem>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "adjust.h"
#include <QWidgetAction>





QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void initToolBar();
    void ShowFile();
private slots:
    void TurntoLeft();
    void TurntoRight();
    void FourArrowAcn_triggered();
    void ArrowAcn_triggered();
    void ZoomAcn_triggered();
    void AdjustAcn_triggered();
    void SaveFile();
    void TurntoHome();
    void ZoomIn_triggered();
    void ZoomOut_triggered();
    void on_ChooseBtn_clicked();

    void on_ConfirmBtn_clicked();

private:
    QAction *HomeBtn;
    QAction *LeftBtn;
    QAction *RightBtn;
    QAction *FourArrowAcn;
    QAction *ZoomAcn;
    QAction *SaveBtn;
    QAction *ArrowAcn;
    QLabel *label;
    QWidget * spacer;
    QMenu* Zoommenu;
    QAction* ZoomIn;
    QAction* ZoomOut;
    Adjust* AdjustAcn;



    Ui::MainWindow *ui;
    double x;
    double y;
    double z;
    int globalMark;
    QImage golbalImg;
    QMediaPlayer BGM;
    QGraphicsScene centerscene;
    QGraphicsPixmapItem picture;
    QSize size;
    QStringList OpenFileNames;
    int FileIndex;
    int FileCnt;
};
#endif // MAINWINDOW_H
